package com.cn.longdistancebusstation.model;

import com.cn.longdistancebusstation.annotation.OrderStatus;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;

/**
 * Created by mal on 2018/1/24.
 */

public class OrderInfo {
    //出发站
    private String fromStationName;

    //目的站
    @SerializedName("arrivalAddress")
    @Expose private String toStationName;

    //车次
    @SerializedName("bliid")
    @Expose private String busNo;

    //发车日期+时间
    @SerializedName("bliidSendDatetime")
    private String sendDate;

    //车票数量
    @SerializedName("ticketNum")
    private int tickets;

    //订单号
    @SerializedName("bookNum")
    @Expose private String orderNo;

    //订单日期+时间
    @SerializedName("bookDateTime")
    @Expose private String orderDate;

    //最晚支付时间
    @SerializedName("lastGetTicketDatetime")
    @Expose private String latestPayDate;

    //订单id
    @SerializedName("id")
    @Expose private String orderID;

    //订单状态
    private @OrderStatus int status;

    //出行日期
    private String outingDate;

    //订单总金额
    private BigDecimal amount;

    //是否流水车
    @SerializedName("bliidIsFlow")
    @Expose private int isFlow;

    //是否取票
    private String customAddress;
    public OrderInfo() {
        this.fromStationName = "济南长途汽车总站";
        this.toStationName = "";
        this.busNo = "";
        this.sendDate = "";
        this.tickets = 0;
        this.orderNo = "";
        this.orderDate = "";
        this.latestPayDate = "";
        this.orderID = "";
        this.status = OrderStatus.ORDER_UNFINISH;
        this.outingDate = "";
        this.amount = new BigDecimal(0);
        this.isFlow = 0;
    }

    public String getFromStationName() {
        return fromStationName;
    }

    public void setFromStationName(String fromStationName) {
        this.fromStationName = fromStationName;
    }

    public String getToStationName() {
        return toStationName;
    }

    public void setToStationName(String toStationName) {
        this.toStationName = toStationName;
    }

    public String getBusNo() {
        return busNo;
    }

    public void setBusNo(String busNo) {
        this.busNo = busNo;
    }

    public String getSendDate() {
        return sendDate;
    }

    public void setSendDate(String sendDate) {
        this.sendDate = sendDate;
    }

    public int getTickets() {
        return tickets;
    }

    public void setTickets(int tickets) {
        this.tickets = tickets;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getLatestPayDate() {
        return latestPayDate;
    }

    public void setLatestPayDate(String latestPayDate) {
        this.latestPayDate = latestPayDate;
    }

    public String getOrderID() {
        return orderID;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getOutingDate() {
        return outingDate;
    }

    public void setOutingDate(String outingDate) {
        this.outingDate = outingDate;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public int getIsFlow() {
        return isFlow;
    }

    public void setIsFlow(int isFlow) {
        this.isFlow = isFlow;
    }

    public String getCustomAddress() {
        return customAddress;
    }

    public void setCustomAddress(String customAddress) {
        this.customAddress = customAddress;
    }
}
